.container {
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.login_wrap {
  width: 700px;
  height: 400px;
  margin: 0 auto;
  box-shadow: 0 0 10px 8px #006a82;
  border: 2px solid #1ab5d7;
  overflow: hidden;
  position: relative;
}
.block {
  background: linear-gradient(45deg, #081b29, #0ef);
  border: 3px solid #0ef;
  width: 850px;
  height: 600px;
  position: absolute;
  top: -4px;
  right: 0;
  transform: rotate(13deg) skewY(40deg);
  transform-origin: 100% 100%;
  transition: 0.5s ease;
}
.active .block {
  transform: rotate(0deg) skewY(0deg);
}
.re_active .block {
  transform: rotate(13deg) skewY(40deg);
  transition-delay: 0.2s;
}
.block1 {
  background: #000;
  border: 3px solid #0ef;
  width: 850px;
  height: 600px;
  position: absolute;
  top: 100%;
  left: 250px;
  transform-origin: bottom left;
  transition: 0.5s ease;
}

.active .block1 {
  transform: rotate(-11deg) skewY(-41deg);
  transition-delay: 0.2s;
}
.re_active .block1 {
  transform: rotate(0deg) skewY(0deg);
  transition-delay: 0s;
}

.btn {
  width: 120px;
  border-radius: 40px;
  height: 40px;
  color: #fff;
  font-weight: 700;
  position: relative;
  border: 2px solid #1ab5d7;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  margin: 15px 0;
  overflow: hidden;
}
.form_box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  background-color: transparent;
  z-index: 1;
  color: #fff;
  height: 100%;
  position: relative;
  padding: 0 45px;
  text-align: center;
  box-sizing: border-box;
}

.form_box1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  background-color: transparent;
  z-index: 1;
  color: #fff;
  height: 100%;
  position: relative;
  padding: 0 45px;
  text-align: center;
  box-sizing: border-box;
}
.title {
  color: #fff;
  margin: 0;
  text-align: center;
}
button::before {
  content: '';
  display: inline-block;
  position: absolute;
  z-index: -1;
  top: 0;
  transition: all 0.3s;
  left: 0;
  width: 100%;
  height: 200%;
  background: linear-gradient(#000, #00d1fb, #000);
}
button:hover::before {
  top: -100%;
}
.input_box {
  position: relative;
  height: 40px;
  margin-top: 20px;
}
.input_box label {
  color: #fff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  left: 0;
  transition: 0.3s;
}
.input_box input:focus ~ label,
.input_box input:valid ~ label {
  top: -5px;
  color: #00d1fb;
}

.input_box i {
  color: #fff;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
}
.input_box input:focus ~ i,
.input_box input:valid ~ i {
  color: #00d1fb;
}
.input_box input {
  background-color: #000;
  border: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 14px;
  outline: none;
  display: block;
  padding: 0 24px 0 5px;
  border-bottom: 2px solid #fff;
  transition: all 0.3s;
}
.input_box input:focus,
.input_box input:valid {
  border-bottom-color: #00d1fb;
}
.bottom {
  font-size: 14px;
  /* 禁止选中 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.login_font {
  color: #00d1fb;
}
.login_font:hover {
  text-decoration: underline;
  cursor: pointer;
}
.animate {
  transform: translate(-200%);
  animation: ani 0.5s ease-in-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
}
.active {
  .animate {
    transform: translate(0);
    animation: ani_leave 0.5s ease-in-out forwards;
    animation-delay: calc(var(--i) * 0.1s);
  }
}

@keyframes ani_leave {
  to {
    transform: translate(-200%);
    transition: all 0.1s;
  }
}
@keyframes ani {
  to {
    transform: translate(0);
    transition: all 0.1s;
  }
}
.animate1 {
  transform: translate(200%);
}
.active .animate1 {
  transform: translate(200%);
  animation: ani1 0.5s ease-in-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
}
.re_active .animate1 {
  transform: translate(0);
  animation: ani_leave1 0.5s ease-in-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes ani_leave1 {
  to {
    transform: translate(200%);
    transition: all 0.1s;
  }
}
@keyframes ani1 {
  to {
    transform: translate(0);
    transition: all 0.1s;
  }
}
.loginOrReigsterWrap {
  display: flex;
  align-items: center;
  height: 100%;
}
.error {
  border-bottom-color: rgb(249, 77, 77) !important;
  animation: color_shake 1s;
}
.error + label,
.error ~ i {
  color: rgb(249, 77, 77) !important;
}
@keyframes color_shake {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}
